<?php

$configPath = dirname(__FILE__);
require_once($configPath.'/enum.php');
require_once($configPath.'/constant.php');

return array
(
	'basePath' => $configPath.'/..',
	'name' => 'OakClub Backend',
    'defaultController' => 'default',
    'sourceLanguage' => CONST_LANGUAGE_EN,
    'language' => CONST_LANGUAGE_EN,

	'import' => array
    (
        'application.base.*',
		'application.models.*',
		'application.utilities.*',
        'ext.yii-mail.YiiMailMessage',
        'ext.yii-mailer.YiiMailer'
	),

	'components' => array
    (
		'db' => array
        (
			'connectionString' => 'mysql:host=127.0.0.1;dbname=oakclubLog',
			'emulatePrepare' => true,
			'username' => 'oakclublog',
			'password' => 'XSWFt6JHUQvQ79mr',
			'charset' => 'utf8',
            'attributes' => array
            (
                PDO::MYSQL_ATTR_LOCAL_INFILE => true
            )
		),
        'db_live' => array
        (
            'class' => 'CDbConnection',
            'connectionString' => 'mysql:host=119.81.36.147;dbname=oakclub_v3',
            'emulatePrepare' => true,
            'username' => 'oakclubdev',
            'password' => 'WTZvJfyDzY9P66HD',
            'charset' => 'utf8'
        ),
        'urlManager' => array
        (
            'urlFormat' => 'path',
            'showScriptName' => false,
            'rules' => array
            (
                'ccu' => 'default/ccu',
                'ccu/api/ping' => 'api/ping'
            )
        ),
        'session' => array
        (
            'autoStart' => true,
            'cookieMode' => 'only',
            'sessionName' => 'PHP_SESSION_ID',
            'timeout' => 1800
        )
	),
    
    'params' => array
    (
        ENUM_CONFIG_PARAM_BASE_URL => 'http://log.oakclub.com',
        ENUM_CONFIG_PARAM_FRONTEND_URL => 'http://oakclub.com',
        ENUM_CONFIG_PARAM_LOG_SCRIBE_PATH => '/home/oakclub/backup_scribe_log/oakclub',
        ENUM_CONFIG_PARAM_GIFT_URL => 'http://www.oakclub.com/bundles/likevnblissdate/v3/chat/images/gifts',
        ENUM_CONFIG_PARAM_STICKER_URL => 'http://www.oakclub.com/bundles/likevnblissdate/v3/chat/images/stickers',
        ENUM_CONFIG_PARAM_MAIL_SERVER => array
        (
            'host' => 'smtp.sendgrid.net',
            'port' => '465',
            'username' => 'oakclub@likevn.com',
            'password' => 'oakclubemail',
            'encryption' => 'ssl'
        ),
        ENUM_CONFIG_PARAM_FLAG_URL => 'http://setiathome.free.fr/images/flags',
        ENUM_CONFIG_PARAM_MEMCACHED_SERVERS => array(array('127.0.0.1', 11211))
    )
);
